package com.idanchuang.user.count.service.api.response;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * @author Richard_yyf
 * @version 1.0 2021/5/27
 */
public class UserMultiScenesCountDTO {

    /**
     * 用户code
     */
    @NotNull
    private Integer userCode;

    /**
     * 不会返回null，如果key不存在，代表不存在对应场景的计数
     * Map<String, Integer> key 为 场景值, value 为对应场景的 count value
     */
    @NotNull
    private Map<String, Integer> scenesCountMap;

    public UserMultiScenesCountDTO() {
    }

    public Integer getUserCode() {
        return userCode;
    }

    public void setUserCode(Integer userCode) {
        this.userCode = userCode;
    }

    public Map<String, Integer> getScenesCountMap() {
        return scenesCountMap;
    }

    public void setScenesCountMap(Map<String, Integer> scenesCountMap) {
        this.scenesCountMap = scenesCountMap;
    }

    @Override
    public String toString() {
        return "UserMultiSceneCountDTO{" +
                "userCode=" + userCode +
                ", scenesCountMap=" + scenesCountMap +
                '}';
    }
}
